﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceProcess;
using System.ServiceModel;

namespace GtsServer.Service.TaskStartEndService
{
    class Program
    {
        static void Main(string[] args)
        {

            //TaskController controller = TaskController.GetInstance();
            //LotteryPoolController lotteryController = LotteryPoolController.GetInstance();

            //ServiceHost host = new ServiceHost(typeof(Service));
            //host.Open();
            //Console.WriteLine("定时服务已开启！");
            //Console.Read();

            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[] 
            { 
                new StartAndEndService() 
            };
            ServiceBase.Run(ServicesToRun);
        }
    }
}
